#pragma once
#include "Comm.hpp"


class Client //读
{
public:
    Client()
        :_fd(gdefault)
    {
        
    }
    bool OpenFoWrite()
    {
        _fd = open(filename,O_WRONLY);
        if (_fd < 0) return false;
        return true; 
    }
    int Sendmessage(std::string& message)
    {
        return write(_fd,message.c_str(),message.size());
    }
    ~Client()
    {}
private:
    int _fd;
};